# Maintainer: Alexander F Rødseth <xyproto@archlinux.org>
# Contributor: Thomas Berryhill <tb01110100@gmail.com>
# Contributor: Bastien Dejean <baskerville@lavabit.com>

pkgname=xdo
pkgver=0.5.7
pkgrel=2
pkgdesc='Utility for performing actions on windows in X'
arch=('loong64' 'x86_64')
url='https://github.com/baskerville/xdo'
license=('BSD')
depends=('libxcb' 'xcb-util-wm' 'xcb-util')
source=(https://github.com/baskerville/${pkgname}/archive/${pkgver}/${pkgname}-${pkgver}.tar.gz)
sha512sums=('0978a8571a35899c916495c9d38458adb6c766db4d498dfacf2f0a46e373f7caa3c3e227096b3e60e03c67b972777cf7519e5b6eee7ebb91f82d4450ac0ff98d')
b2sums=('04710f0a52dba22ef6e5556884ccd6a584e68167511f596aabcd19553d14a3b8d441b1a3d94cb927f5af3c9231690a9954ff8126d35f71a17d85d6aa3a31063f')

build() {
  cd $pkgname-$pkgver
  make PREFIX=/usr
}

package() {
  cd $pkgname-$pkgver
  make PREFIX=/usr DESTDIR="$pkgdir" install
  install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}

# getver: github.com/baskerville/xdo/blob/master/VERSION
# vim:ts=2 sw=2 et:
